package org.example.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddNoticeDto {

    private Long id;

    @NotBlank(message = "通知标题不能为空")
    private String title;

    @NotBlank(message = "通知内容不能为空")
    private String content;

    private String createTime;

    @NotNull(message = "资源id不能为空")
    private Long resourceId;
    /**
     * 0:未删除 1:已删除
     */
    private Integer delFlag;
}
